<?

if($Db->connect()){

  if($_SESSION["modify_mode"] == "Y"){


  }else{


  }

  echo  "<table border='1' class='dedeq'>\n".
        "<tr>\n".
        "<th> No </th>\n".
        "<th> Drop </th>\n".
        "<th> Price </th>\n".
        "<th> SN </th>\n".
        "</tr>\n";

  for($iRow = 0; $iRow < $_SESSION["init_num"]; $iRow++){

    echo  "<tr>\n".

            "<td> ".($iRow + 1)." </td>\n".

            "<td> ".$GHtml->formCheckBox("dropBox[]",
                                         ($iRow + 1),
                                         $Misc->stdProperties())." </td>\n".

            "<td> ".$GHtml->formInput("priceEnt[".$iRow."]",
                                      $_POST["priceEnt"][$iRow],
                                      $Misc->stdNumStyle(8).
                                      $Misc->stdProperties())." </td>\n".

            "<td> <table border='1' class='dedeq'>

                  <td> ".$GHtml->formInput("headEnt[".$iRow."]",
                                           $_POST["headEnt"][$iRow],
                                           $Misc->stdNumStyle(3).
                                           $Misc->stdNoNull())."  </td>

                  <td> ".$GHtml->formInput("lengthEnt[".$iRow."]",
                                           $_POST["lengthEnt"][$iRow],
                                           $Misc->stdNumStyle(3).
                                           $Misc->stdNoNull())."  </td>

                  <td> ".$GHtml->formInput("serNumEnt[".$iRow."]",
                                           $_POST["serNumEnt"][$iRow],
                                           $propSerNum.
                                           $Misc->stdKeyProp("serNumEnt[".($iRow+1)."]"))."  </td>

                  </table>
                  </td>\n".

          "</tr>\n";
  }

  echo  "</table><br/>\n";

  echo  $GHtml->formInputButton( "Entry-data",
                                 "entry",
                                 "Entry-data",
                                 $stlButton).
  			$GHtml->formInputButton( "Add-row",
                                 "addrow",
                                 "Add-row",
                                 $stlButton).
        $GHtml->formInputButton( "Drop-row",
                                 "droprow",
                                 "Drop-row",
                                 $stlButton).
      	"</form>\n ".
      	"</body>\n";

  $Db->dc();
}else{

  $Misc->usrDie(_DB_CONN_ERROR);
}

?>